package com.java.huxb.day02;

/**
 * @author huxb
 * @date 2020/3/2 0002 下午 9:47
 */
class  Student {
    @Override
    public String toString() {
        return "student 666";
    }
}
public class Test002 {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        Class<?> stu = Class.forName("com.java.huxb.day02.Student");
        Object oStu = stu.newInstance();
        System.out.println(oStu);
    }
}
